﻿@model PMS.Models.Base.BaseRole
@{
    ViewBag.Title = "角色修改";
}


<form id="mainForm" action="/Base/BaseRole/AddOrEdit" method="post">
    <table>
        <tr>
            <td>角色名称:</td>
            <td><input type="text" class="easyui-textbox" id="roleName" name="RoleName" value="@Model.RoleName" /></td>
            <td>编码:</td>
            <td><input type="text" class="easyui-textbox" id="sym" name="Sym" value="@Model.Sym" /></td>
        </tr>
        <tr>
            <td>取值:</td>
            <td><input type="text" class="easyui-textbox" id="value" name="Value" value="@Model.Value" /></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td>备注信息:</td>
            <td colspan="3">
                <input type="text" class="easyui-textbox" id="remark" name="Remark" value="@Model.Remark" multiline="true" style="width: 102%; height: 60px;" />
            </td>
        </tr>
        <tr>
            <td>是否启用:</td>
            <td>
                <select class="easyui-combobox" name="Enable" id="enable" panelHeight="auto">
                    <option value="1">启用</option>
                    <option value="0">停用</option>
                </select>
            </td>
            <td></td>
            <td></td>
        </tr>
    </table>
    @Html.HiddenFor(x => x.Id)
    @Html.HiddenFor(x => x.CreateBy)
    @Html.HiddenFor(x => x.CreateDate)
    @Html.HiddenFor(x => x.DeleteBy)
    @Html.HiddenFor(x => x.DeleteDate)
    @Html.HiddenFor(x => x.IsDel)
    @Html.HiddenFor(x => x.ModifyBy)
    @Html.HiddenFor(x => x.ModifyDate)
</form>
<script>
    //setTimeout(Init,1);

    function InitChild() {
        var enable = "@Model.Enable";
        $("#enable").combobox('setValue', enable);
    }
</script>